package com.ruoyi.system.service;

import com.ruoyi.system.api.domain.Attachment;
import com.ruoyi.system.api.domain.AttachmentAssociated;

import java.util.List;

/**
 * 附件关联Service接口
 * 
 * @author ruoyi
 * @date 2024-09-18
 */
public interface IAttachmentAssociatedService 
{
    /**
     * 查询附件关联
     * 
     * @param id 附件关联主键
     * @return 附件关联
     */
    public AttachmentAssociated selectAttachmentAssociatedById(Long id);

    /**
     * 查询附件关联列表
     * 
     * @param attachmentAssociated 附件关联
     * @return 附件关联集合
     */
    public List<AttachmentAssociated> selectAttachmentAssociatedList(AttachmentAssociated attachmentAssociated);

    /**
     * 新增附件关联
     * 
     * @param attachmentAssociated 附件关联
     * @return 结果
     */
    public int insertAttachmentAssociated(AttachmentAssociated attachmentAssociated);

    /**
     * 修改附件关联
     * 
     * @param attachmentAssociated 附件关联
     * @return 结果
     */
    public int updateAttachmentAssociated(AttachmentAssociated attachmentAssociated);

    /**
     * 批量删除附件关联
     * 
     * @param ids 需要删除的附件关联主键集合
     * @return 结果
     */
    public int deleteAttachmentAssociatedByIds(Long[] ids);

    /**
     * 删除附件关联信息
     *
     * @param id 附件关联主键
     * @return 结果
     */
    public int deleteAttachmentAssociatedById(Long id);

    /**
     * 获取附件filedId
     *
     * @param associatedId 附件关联主键
     * @return 结果
     */
    List<Attachment> getFiledIdByAssociatedId(Long associatedId);

    List<String> viewByAssociatedId(Long associatedId);
}
